home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 3 / Cream of the Crop 3.iso / clipper / ks94an.zip / CH_COUNT.HDR < prev    next >
Text File  |  1994-04-25  |  793b  |  37 lines

  1. /******************************************************************************
  2.                  The Klipper Library, for CA-Clipper 5.x
  3.         Copyright (c), 1994, Wallace Information Systems Engineering
  4.  
  5. FUNCTION:
  6.  
  7. _ChCount( cInChar, cInStr ) --> nInteger
  8.  
  9. PARAMETERS:
  10.  
  11. cInChar : Character to count
  12. cInStr  : String to search
  13.  
  14. SHORT:
  15.  
  16. Count the number of times a character occurs in a string.
  17.  
  18. DESCRIPTION:
  19.  
  20. _ChCount() counts the number of times that a given character occurs in a
  21. given string.
  22.  
  23. NOTE:
  24.  
  25. _ChCount() IS case sensitive.
  26.  
  27. EXAMPLE:
  28.  
  29. t = _ChCount('A','ABCADEFAGHIAJKL')
  30. Result: t = 4
  31.  
  32.  
  33. t = _ChCount('a','ABCADEFAGHIAJKL')
  34. Result: t = 0 (REMEMBER: Case Sensitive)
  35.  
  36. ******************************************************************************/
  37.